package com.ruoyi.ammunition.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 弹药，存储弹药的基本信息对象 ammunition
 * 
 * @author guo
 * @date 2024-10-21
 */
public class Ammunition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 弹药ID */
    private Long id;

    /** 弹药名称 */
    @Excel(name = "弹药名称")
    private String ammunitionName;

    /** 弹药类型 */
    @Excel(name = "弹药类型")
    private String ammunitionType;

    /** 弹药重量 */
    @Excel(name = "弹药重量")
    private String ammunitionWeight;

    /** 弹药尺寸 */
    @Excel(name = "弹药尺寸")
    private String ammunitionDimensions;

    /** 包装形式 */
    @Excel(name = "包装形式")
    private String packagingType;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addedAt;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String note;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间，自动更新 */
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAmmunitionName(String ammunitionName) 
    {
        this.ammunitionName = ammunitionName;
    }

    public String getAmmunitionName() 
    {
        return ammunitionName;
    }
    public void setAmmunitionType(String ammunitionType) 
    {
        this.ammunitionType = ammunitionType;
    }

    public String getAmmunitionType() 
    {
        return ammunitionType;
    }
    public void setAmmunitionWeight(String ammunitionWeight) 
    {
        this.ammunitionWeight = ammunitionWeight;
    }

    public String getAmmunitionWeight() 
    {
        return ammunitionWeight;
    }
    public void setAmmunitionDimensions(String ammunitionDimensions) 
    {
        this.ammunitionDimensions = ammunitionDimensions;
    }

    public String getAmmunitionDimensions() 
    {
        return ammunitionDimensions;
    }
    public void setPackagingType(String packagingType) 
    {
        this.packagingType = packagingType;
    }

    public String getPackagingType() 
    {
        return packagingType;
    }
    public void setAddedAt(Date addedAt) 
    {
        this.addedAt = addedAt;
    }

    public Date getAddedAt() 
    {
        return addedAt;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ammunitionName", getAmmunitionName())
            .append("ammunitionType", getAmmunitionType())
            .append("ammunitionWeight", getAmmunitionWeight())
            .append("ammunitionDimensions", getAmmunitionDimensions())
            .append("packagingType", getPackagingType())
            .append("addedAt", getAddedAt())
            .append("note", getNote())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
